//package com.fowo.api.service.handleWork;
//
//import com.fowo.api.model.purchase.application.PurchaseApplicationVo;
//import com.fowo.api.model.purchase.order.PurchaseOrderPurchasesOrderReviewAction;
//import com.fowo.api.model.purchase.order.PurchaseOrderVo;
//import com.fowo.api.service.impl.PurchaseOrderServiceImpl;
//import org.springframework.stereotype.Component;
//import org.springframework.util.Assert;
//
//import javax.annotation.Resource;
//
//@Component
//public class purchaseOrderPurchasesOrderReview implements PurchaseOrderPurchasesOrderReviewAction {
//
//    @Resource
//    private PurchaseOrderServiceImpl purchaseOrderService;
//    @Override
//    public void run(Long id) throws Exception {
//
//        PurchaseOrderVo voById = purchaseOrderService.getVoById(id);
//        Assert.notNull(voById,"不存在！");
//        Assert.isTrue(voById.getProductType()!=null&&voById.getProductType().equals("0"),"违规操作!");
//        Assert.isTrue(voById.getAnStatus().equals("0"),"违规操作!");
//        voById.setStauts("1");
//        voById.setAnStatus("9");
//        purchaseOrderService.updateById(voById);
//    }
//}
